<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>upower</Name>
        <Homepage>http://upower.freedesktop.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2+</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        <Summary>Power Management Service</Summary>
        <Description>upower provides a daemon, API and command line tools for managing power devices attached to the system.</Description>
        <Archive sha1sum="d65bea7ad4452096aa127d9410075fb3b080895a" type="tarxz">http://upower.freedesktop.org/releases/upower-0.99.7.tar.xz</Archive>
        <AdditionalFiles>
            <AdditionalFile target="po/tr.po">tr.po</AdditionalFile>
        </AdditionalFiles>
        <BuildDependencies>
            <Dependency>dbus-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>polkit-devel</Dependency>
            <Dependency>dbus-glib-devel</Dependency>
            <Dependency>libgudev-devel</Dependency>
            <Dependency>libusb-devel</Dependency>
            <Dependency>libplist-devel</Dependency>
            <Dependency>libimobiledevice-devel</Dependency>
            <Dependency>gobject-introspection-devel</Dependency>
            <Dependency>docbook-xsl</Dependency>
            <Dependency>intltool</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">add-tr.patch</Patch>
            <!--<Patch level="1">fix-segfault.patch</Patch>-->
            <!--<Patch level="1">create-dir-runtime.patch</Patch>-->
        </Patches>
    </Source>

    <Package>
        <Name>upower</Name>
        <RuntimeDependencies>
            <Dependency>dbus</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>polkit</Dependency>
            <Dependency>dbus-glib</Dependency>
            <Dependency>libgudev</Dependency>
            <Dependency>libplist</Dependency>
            <Dependency>libimobiledevice</Dependency>
            <Dependency versionFrom="1.4.1">pm-utils</Dependency>
            <Dependency>libusb</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="data">/lib</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/etc/dbus-1</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="config">/etc/UPower</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/var/lib/upower</Path>
            <Path fileType="data">/usr/share/gir-1.0</Path>
            <Path fileType="data">/usr/share/dbus-1</Path>
            <Path fileType="executable">/usr/libexec</Path>
            <Path fileType="data">/usr/share/polkit-1</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="data">/usr/share/dbus-1/interfaces/*.xml</Path>
            <Path fileType="data">/usr/lib/girepository-1.0/*.typelib</Path>
        </Files>
    </Package>

    <Package>
        <Name>upower-devel</Name>
        <Summary>Development files for upower</Summary>
        <RuntimeDependencies>
            <Dependency release="current">upower</Dependency>
            <Dependency>dbus-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>polkit-devel</Dependency>
            <Dependency>dbus-glib-devel</Dependency>
            <Dependency>libgudev-devel</Dependency>
            <Dependency>libplist-devel</Dependency>
            <Dependency>libimobiledevice-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="5">
            <Date>2018-02-25</Date>
            <Version>0.99.7</Version>
            <Comment>Version bump.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2017-03-05</Date>
            <Version>0.99.4</Version>
            <Comment>Rebuild.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2017-03-02</Date>
            <Version>0.99.4</Version>
            <Comment>Rebuild for new toolchain.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>0.99.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-18</Date>
            <Version>0.99.4</Version>
            <Comment>Version bump</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-26</Date>
            <Version>0.9.23</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>
